"use strict";

var editor;

$(document).ready(function(){
    //initial default dir
    $('#tb_etcd_dir').val('/');
    // initial datatable
    $('#example').DataTable();

    //initial editor
    var container = document.getElementById("jsoneditor");
    var options = {
        mode: 'code'
    };
    editor = new JSONEditor(container, options);

    var json = {
        "Array": [1, 2, 3],
        "Boolean": true,
        "Null": null,
        "Number": 123,
        "Object": {"a": "b", "c": "d"},
        "String": "Hello World"
    };
    editor.set(json);
});
